package com.hmdp.service;

//redis分布式锁
public interface ILock {
    //获取锁,并设置锁的过期时间
    boolean tryLock(long timeoutSec);
    //释放锁
    void unlock();
}
